<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="../../common/import.jsp"%>
<html>
<head>
<title></title>
   <style type="text/css">
	  .grid_layout{
			width: 99.5%;
			align: center;
	  }
	  .grid_layout table{
			border-collapse: collapse;
			border: 0px solid #e6e7e9; 
			border-width: 1px 1px 1px 1px; 
			text-align: center;
	  }
	  .grid_layout tr th{
			border: 0px solid #e6e7e9;
			border-width: 1px;
			padding: 2px 0px;
			width: 20%;
			text-align: right;
			vertical-align: middle;
	   }
	  .grid_layout tr td{
			border: 0px solid #e6e7e9;
			border-width: 1px;
			padding: 2px 0px;
			width: 30%;
			text-align: left;
			vertical-align: middle;
	  }
	  label.error {   
	    color: red;display: none;   
	  }
   </style>
   <script src="${ctx}/resources/js/jquery.validate.min.js" type="text/javascript"></script>
   <script type="text/javascript">
        
   </script>
</head>
<body>
	<div class="easyui-layout" region="center" fit="true">
		<div region="center" border="false" style="padding-top: 10px; background: #fff; border: 1px solid #ccc;">
			<form id="formTable" method="post" >
				<table class="grid_layout" cellpadding="1" cellspacing="1">
					<tr>
						<th >用户名：</th>
						<td >
						${user.userName}
						</td>
						<th>姓名：</th>
						<td>
						${user.name}
						</td>
					</tr>
					<tr>
						<th>性别：</th>
						<td>
						<c:if test="${user.sex == '1'}">男</c:if>
						<c:if test="${user.sex == '2'}">女</c:if>
						</td>
						<th>是否可用：</th>
						<td>
						<c:choose>  
				            <c:when test="${user.status == '1'}">   
				                <label>可用</label>
				            </c:when>  
				            <c:otherwise>  
				                <label>禁用</label>
				            </c:otherwise>
			            </c:choose> 
						</td>
					</tr>
					<tr>
						<th>手机/电话：</th>
						<td>
						${user.phone} &nbsp;
						</td>
						<th>创建者：</th>
						<td>
						${user.createUser} &nbsp;
						</td>
					</tr>
					<tr>
						<th>创建时间：</th>
						<td>
						<fmt:formatDate value="${user.createTime}" type="both" pattern= "yyyy-MM-dd HH:mm:ss"/>
						</td>
						<th>更新时间：</th>
						<td>
						<fmt:formatDate value="${user.updateTime}" type="both" pattern= "yyyy-MM-dd HH:mm:ss"/> &nbsp;
						</td>
					</tr>
					<tr>
						<th>上次登录IP：</th>
						<td>
						${user.loginIp} &nbsp;
						</td>
						<th>上次登录时间：</th>
						<td>
						<fmt:formatDate value="${user.loginTime}" type="both" pattern= "yyyy-MM-dd HH:mm:ss"/> &nbsp;
						</td>
					</tr>
					<th >机构名称：</th>
						<td colspan="3">
						     ${organName} &nbsp;
						</td>
					<tr>
					    <th >角色：</th>
						<td colspan="3"> &nbsp;
						     <c:if test="${not empty roleList }">
						         <c:forEach items="${roleList}" var="role" >
						             <label>${role.roleName}</label>
						         </c:forEach>
						     </c:if>
						</td>
					</tr>
					<tr>
						<th>备注：</th>
						<td colspan="3" height="60px">${user.remark} &nbsp;
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div region="south" border="false" style="text-align: right; padding: 5px 5px 5px 0;">
			<a class="easyui-linkbutton" iconcls="icon-cancel" href="javascript:void(0)" onclick="parent.closeWindow();">取消</a>
		</div>
	</div>
</body>
</html>
